﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminSlides.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminSlides" %>
<%@ Register Src="~/UIAdmin/Control/PaggingControl.ascx" TagName="PaggingControl"
    TagPrefix="EHT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <h1><asp:Label ID="lbAdminCustomer" runat="server" Text="Bilder Leder"></asp:Label>
        
    </h1>
    <table width="100%">
        <tr>
           
            <td style="text-align:right; padding-right:10px">
                 
        <asp:Button ID="btnAddImage" runat="server" Text="Legg til bilder" 
            style="height: 26px" onclick="btnAddImage_Click"  />
     
            </td>
        </tr>
    </table>
     <asp:Repeater ID="rpSlide" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" width="60%" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                       
                        <th class="actions edit">
                            Edit
                        </th>
                       
                        <th class="actions delete">
                            Slett
                        </th>
                        
                        <th style="width:90%">
                            Bilder Slide Show
                        </th>                       
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
               
                <td class="actions edit">
                    <a href='AdminSlide.aspx?ID=<%#Eval("ID")%>'>
                        <img alt="Edit" src="../Styles/Edit.png"></a>
                </td>
              
                <td class="actions delete">
                    <a href='AdminSlideConfirmSuccess.aspx?ID=<%#Eval("ID")%>'>
                        <img alt="Delete" src="/Styles/Delete.png"></a>
                </td>                
                <td>
                    <asp:Image Height="238px" Width="595px" ID="ImageSlide" ImageUrl='<%#Eval("ImageSlide")%>' runat="server" />
                </td>                
               
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
  
   
        <p>
        <eht:paggingcontrol id="PaggingControl1" runat="server" pageurl="AdminSlides.aspx"
            pagesize="10" />
    </p>
    
    
</asp:Content>
